/**
* 作者: lichuan
* 日期: 2025-07-28 12:02:29
* 备注: 联盟总动员玩家专属任务
*/
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.server.game.commondata.union.UnionActionTaskConstant;

public class UserMobileTaskInfo extends UserMobileTaskInfoModel {
	public UserMobileTaskInfo() {
		super();
	}

	public UserMobileTaskInfo(long userId,int taskId,int taskType,long refreshTime) {
		super();
		putTaskId(taskId);
		putUserId(userId);
		putTaskType(taskType);
		putRefreshTime(refreshTime);
	}


	// 是否能任务能做
	public boolean canDo(){
		return !(isComplete() || isGetReward());
	}

	// 已完成
	public  boolean isComplete(){
		return getIsComplete() == UnionActionTaskConstant.TASK_COMPLETE;
	}

	// 已领奖
	public  boolean isGetReward(){
		return getIsComplete() == UnionActionTaskConstant.TASK_GET_REWARD;
	}
}
